package com.lagou;

import org.apache.dubbo.config.annotation.Service;

import java.util.Random;

@Service
public class DemoServiceImpl implements DemoService {
    @Override
    public String methodA() {
        Random random = new Random();
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException ex) {
            ex.printStackTrace();
        }

        return "methodA";
    }

    @Override
    public String methodB() {
        Random random = new Random();
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException ex) {
            ex.printStackTrace();
        }

        return "methodB";
    }

    @Override
    public String methodC() {
        Random random = new Random();
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException ex) {
            ex.printStackTrace();
        }

        return "methodC";
    }
}
